package com.xfp.pojo.dto;

import com.xfp.pojo.common.SetTimeAndUser;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsDto extends SetTimeAndUser {

    @ApiModelProperty("商品名称")
    @NotBlank(message = "商品名称不能为空")
    private String skuName;
    @NotBlank(message = "请上传商品图片")
    @ApiModelProperty("商品图片")
    private String skuImage;
    @ApiModelProperty("基础价格")
    @NotBlank(message = "基础价格不能为空")
    private Integer price;
    @ApiModelProperty("商品类别id")
    @NotBlank(message = "商品类别id不能为空")
    private Integer classId;
    @ApiModelProperty("净含量")
    private String unit;
    @ApiModelProperty(value = "商品品牌名称",required = true)
    @NotBlank(message = "品牌名称不能为空")
    private String brandName;
    @ApiModelProperty(value = "商品序列号",required = true)
    private String skuId;


}
